6e9e5e75203d2772c9bebb846a5e57e20d0c63de,src/test/java/com/wikia/webdriver/testcases/discussions/ReportingPostTests.java,ReportingPostTests,moderatorOnDesktopCanSeeReportedPostOnUserPostsPage,#,695
Before Change
PostEntity.Data data = createAndReportPostRemotelyAsFirstUser();
reportPostRemotelyAsSecondUser(data);
final PostEntity postEntity = new UserPostsPage().open(data.getAuthorId()).getPost().findPostById(data.getId());
Assertion.assertTrue(postEntity.isReported(), REPORTED_INDICATOR_NOT_VISIBLE_FOR_USER_MESSAGE);
}
After Change
public void moderatorOnDesktopCanSeeReportedPostOnUserPostsPage() {
final PostEntity.Data data = createAndReportPostRemotelyAsFirstUser();
reportPostRemotelyAsSecondUser(data);
final UserPostsPage page = openUserPostsAndWaitUntilLoaded(data.getAuthorId());
final PostEntity postEntity = page.getPost().findPostById(data.getId());
assertTrue(postEntity.isReported(), REPORTED_INDICATOR_NOT_VISIBLE_FOR_USER_MESSAGE);
}